package cn.com.huak.www.sell.enums;

import lombok.Getter;

/**
 * @author huak@wanggang
 * @date 2018/12/31 16:46
 */
@Getter
public enum ResultEnum {

    SUCCESS(0, "成功"),

    OPENID_ERROR(91, "openid错误...."),
    ORDER_FORM_ERROR(1, "创建订单参数不正确"),

    ORDER_ERROR(101, "订单信息无效...."),
    PRODUCT_NOT_EXIST(102, "商品不存在...."),
    PRODUCT_STOCK_ERROR(103, "库存不足...."),

    ORDER_NOT_EXIST(104, "订单不存在...."),
    ORDER_DETAIL_NOT_EXIST(105, "订单详情不存在...."),

    ORDER_STATUS_ERROR(106, "订单状态错误...."),
    ORDER_DETAIL_EMPTY(107, "订单中订单详情为空...."),
    ORDER_PAY_STATUS_ERROR(108, "订单支付状态错误...."),

    JSON_ERROR(109, "json转换失败...."),

    ORDER_OWNER_ERROR(110, "该订单不属于当前的用户...."),

    ORDER_CART_EMPTY(110, "购物车为空...."),
    ORDER_CANCEL_SUCCESS(111, "订单取消成功...."),
    ORDER_FINISH_SUCCESS(112, "订单完结成功...."),

    PRODUCT_STATUS_ERROR(113, "商品状态错误...."),
    ;

    /*  */
    private Integer code;

    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
